import { createStore } from 'vuex'

export default createStore({
  state: {
    playListIndex:0,
    isbtnShow:true,//播放暂停按钮的显示
    playList:[{//定义的播放列表
      al:{
        id: 16949,
        picUrl: "https://publish-pic-cpu.baidu.com/850094fd-1e4b-40fd-bcdd-ae65902759f7.jpeg@q_90,w_450",
      },
      name: "暂无歌曲播放.",
      id: 167827,
    }],
  },
  getters: {
  },
  mutations: {
    updatePlayList:function (state,value) { 
      state.playList = value;
      // console.log(state.playList);
     },
     updatePlayListIndex:function (state,value) { 
      state.playListIndex = value;
      // console.log(state.playListIndex);
      }
  },
  actions: {
  },
  modules: {
  }
})
